import fs from "fs"
import readline from 'readline'
const ansiEscapes = require('ansi-escapes')


readline.emitKeypressEvents(process.stdin)
process.stdin.setRawMode(true)

process.stdin.on("keypress", (...args) => {
  console.log(args)
})